#include "CConfigReader.h"
namespace game
{
	namespace io
	{
		CConfigReader::CConfigReader(IDeviceManager* deviceManager) 
			: DeviceManager(0)
		{
			this->DeviceManager = deviceManager;
			
			if(this->DeviceManager)
				this->DeviceManager->grab();
		}

		CConfigReader::CConfigReader()
		{
			//not use
		}

		CConfigReader::~CConfigReader()
		{
			if(this->DeviceManager)
				this->DeviceManager->drop();
		}
		
		void CConfigReader::readConfig(const c8* file)
		{
			
		}

		//! Creator
		IConfigReader* createConfigReader(IDeviceManager* deviceManager)
		{
			IConfigReader* result = new CConfigReader(deviceManager);

			return result;
		}
	}

}

